package com.woniuxy.user.mapper;

import com.woniuxy.commons.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    Boolean register(User user);

    Integer isActiveByUsername(String username);

    User login(User user);

    List<String> findPermsByUsername(String username);

    User isExistUsername(String username);



    User isExistPhone(String phone);

    Boolean changePassword(User user);

    User isPasswordSame(User user);

    List<User> isExist(User user);
}
